package com.maybach.workflow.core.dal.mapper;

import com.maybach.workflow.common.model.FlowDO;
import com.maybach.workflow.common.query.FlowQuery;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * MyBatis Mapper for Flow.
 */
public interface FlowMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(FlowQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(FlowQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert selective.
     */
    int insertSelective(FlowDO record);

    /**
     * select by query condition.
     */
    List<FlowDO> selectByQuery(FlowQuery query);

    /**
     * select by primary key.
     */
    FlowDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") FlowDO record, @Param("query") FlowQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") FlowDO record, @Param("query") FlowQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(FlowDO record);
}